import axios from "../util/axios";

export function getComment(id) {
  return axios.get(`/goods/comment/${id}`, {
    headers: {
      token: localStorage.getItem("token") || "",
    },
  });
}

export function addComment(data) {
  return axios.post('/goods/comment/add', data, {
    headers: {
      token: localStorage.getItem("token") || "",
    }
  })
}